//
//  HNNetworkManager.h
//  HAFund
//
//  Created by 夏成龙 on 2018/10/29.
//  Copyright © 2018年 夏成龙. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HARequest.h"

@interface HANetworkManager : NSObject

///网络是否链接
+ (BOOL)isReachable;

///网络是否是WiFi
+ (BOOL)isReachableViaWiFi;

///网络是否为移动网络
+ (BOOL)isReachableViaWWAN;

+ (HARequest *)GETWithPath:(NSString *)path requestParams:(id)requestParams success:(void(^)(NSDictionary *response))success failure:(void(^)(NSError *error))failure;

+ (HARequest *)POSTWithPath:(NSString *)path requestParams:(id)requestParams success:(void(^)(NSDictionary *response))success failure:(void(^)(NSError *error))failure;

@end
